#include "smallsatos.h"
#include "tasks.h"
#include "log.h"


void error_task (void *pdata)
{
	evenement_t event;

	//event.code = EV_RESET_CONTROLEUR;
	//event.valeur = RCON;
	//OSQPost(get_event_log_queue(), &event);
	


	for (;;)
	{
		/* TODO replace */
		OSTimeDlyHMSM(0,0,1,0);

		if (RXERRCNT || TXERRCNT)
		{
			/* CAN Error */
			
			//event.code = EV_ETAT_CAN;
			//event.valeur = RXERRCNT + TXERRCNT;
			//OSQPost(get_event_log_queue(), &event);
		}
	}
}